package com.kuangstudy.io.demo;

import java.io.File;

/**
 * ClassName: UnsafeBuyTicket
 * date: 2021/07/14 20:14:47
 *java.io.File类
 *
 * @author zlk
 */
public class Demo1 {
    public static void main(String[] args) {
        String pathSeparator = File.pathSeparator;
        System.out.println(pathSeparator);//; 路径分割符 windows; linux:
        /**
         * 操作路径不能写死了
         * "C:"+File.separator+"a.txt"
         */
        String separator = File.separator;
        System.out.println(separator);//\ 文件名称分隔符 windows \ linux /
    }
}
